//
//  XWIdentityCardHelper.h
//  XWFaceSDK_Example
//
//  Created by 吴智民 on 2019/11/8.
//  Copyright © 2019 lanchc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "XWFaceHelper.h"
//#import <XWFaceSDK/CloudwalkIDCardOCR.h>
//#import <XWFaceSDK/CWIDCardCaptureController.h>
//#import <XWFaceSDK/CloudwalkCardUtil.h>


NS_ASSUME_NONNULL_BEGIN

// 结果回调
typedef void (^identityOcrCompleteBlock)(NSDictionary *dict, XWDireType outType, UIImage *cardImage, UIImage* idFaceImage, NSInteger identifier);

/// 身份证识别工具类
@interface XWIdentityCardHelper : NSObject

/// 单例
+ (instancetype)shared;

/// 扫描正面
- (void)scanningPositive:(UIViewController*)controller identifier:(NSInteger)mark complete:(identityOcrCompleteBlock)block;
/// 扫描反面
- (void)scanningNegative:(UIViewController*)controller identifier:(NSInteger)mark complete:(identityOcrCompleteBlock)block;

@end

NS_ASSUME_NONNULL_END
